﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="xiaoshoudd.aspx.cs" Inherits="Web.xiaoshoudd" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>销售订单导入</title>
     <link href="css/basic.css" rel="stylesheet" />
    <script src="js/jquery-1.4.4.js"></script>
    <script src="js/jquery-ui-1.8.9.custom.min.js"></script>
    <link href="css/jquery.ui.all.css" rel="stylesheet" />
    <script src="js/jquery.ui.datepicker-zh-CN.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="form-body">
        <div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
             <table class="query-narrow-table" style="margin-bottom: 0; border-bottom: 0; width: 100%">
             <tr>
                    <td>
                         <asp:FileUpload ID="FileUpload1" runat="server" /> 
                         <asp:Button ID="Button2" runat="server" Text="导入" OnClick="Button1_Click" />
                    </td>
                    <td>
                      
                    </td>
                    
                </tr>
             </table>
        </div>
        <div class="ui-tabs-panel ui-widget-content ui-corner-bottom">
            <table class="query-narrow-table" style="margin-bottom: 0; border-bottom: 0; width: 100%">
                <tr>
                    <td>
                        <asp:Button ID="btnsheng" runat="server" Text="生成销售订单" OnClick="btnsheng_Click"  />
                    </td>
                    <td>
                        <asp:Button ID="btndel" runat="server" Text="删除" OnClick="btndel_Click"  />
                    </td>
                     <td >
                       <asp:Button ID="btnfresh" runat="server" Text="刷新" OnClick="btnfresh_Click"  />
                    </td>
                    
                </tr>
              
            </table>
            <p>
            </p>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="GridViewStyle"
                OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound">
                <Columns>
                    
                    <asp:TemplateField HeaderText="零件号">
                        <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%#Eval("define2")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>      
                   <asp:TemplateField HeaderText="订货日期">
                        <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%#Eval("define3")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>  
                    <asp:TemplateField HeaderText="数量">
                        <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%#Eval("define4")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>  
                    <asp:TemplateField HeaderText="订单号">
                        <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%#Eval("define5")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>  
                    <asp:TemplateField HeaderText="单价">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%#Eval("define7")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="型号">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%#Eval("define9")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                   
                   
                </Columns>
                <HeaderStyle CssClass="GridViewHeaderStyle" />
                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                <RowStyle CssClass="GridViewRowStyle" />
            </asp:GridView>
           
        </div>
    </div>
    </form>
</body>
</html>
